<?php
if(!isset($num)){
 ?>
 <script>
 location='index.php'; 
 </script>
 <?php
 exit;
}
 $lnum=$ran_link[$num];
?>

<!DOCTYPE html>
<html lang="en">
<head>
  <title>周刊VOCALOID中文曲排行榜</title>
  <meta charset="UTF-8"/>
  <meta name="Generator" content="EditPlus?"/>
  <meta name="Author" content=""/>
  <meta name="Keywords" content=""/>
  <meta name="Description" content=""/>
  <meta name="robots" content="noindex,nofollow">
  <link rel="stylesheet" media="all" href="assets/index.css?body=1" />
  <script src="assets/jquery.min.js"></script>
  <script>window.jQuery || document.write('<script src="assets/jquery-2.1.1.min.js"><\/script>')</script>
</head>
<body>
<div class="wrap" style="box-shadow:0 2px 6px rgba(100, 100, 100, 0.3);">
  <div class="span_top">
    <img src="assets/top.jpg" alt="Top" />

    <div class="ranker" style="width:700px;padding:10px;margin-left:20px;float:left;">
      <h4 id="MainList_Title">周刊VOCALOID中文排行榜♪<?php echo $num; ?></h4>
      <span class="ranker_b"><a id="MainList_Linker" class="viewer" href="#" target="_blank"></a></span>
      <div class="feeds_list" id="MainList">
        <div class="feeds_main">
          <div class="feeds_index">
            <h4>{PIndex}</h4>
          </div>
          <div class="feeds_text">
            <span class="title"><a href="{Linker}" target="_blank">{Title}</a></span>
<span class="number firstline"><i>得点：{Pts}</i><i>日期：{PDate}</i></span>
<span class="number"><i>播放：{Play}</i><i>评论：{Comment}</i></span>
<span class="number"><i>收藏：{Favourite}</i><i>硬币：{Yb}</i></span>
          </div>
<div class="feeds_img"><img src="assets/star-image.png" alt="Star image" /></div><div class="clear"></div>
        </div>

      </div>
    </div>

    <div class="rightbar" style="display:block;float:left;width:320px;padding-top:10px;padding-left:10px;">
      <div class="rankoverall" style="margin-top:20px;">
        <div class="ranker" style="width:100%">
          <div class="feeds_list" id="OverlayList">
            <div class="feeds_main">
              <div style="text-align: center">
                <a target="_blank" href="http://www.bilibili.com/sp/%E5%91%A8%E5%88%8AVOCALOID%E4%B8%AD%E6%96%87%E6%9B%B2%E6%8E%92%E8%A1%8C%E6%A6%9C"><img style="width:128px;height:128px" src="assets/vcniang.jpg" alt="vcniang" /></a>
              </div>
              <div class="clear"></div>
            </div>
          </div>
        </div>
      </div>
      <div class="ranktotalr">
        <div class="ranker" style="width:100%">
          <h4 style="background: #FE6D4B;">最新统计数据</h4>
          <div class="feeds_list">
            <div class="feeds_main">
              <div class="feeds_text">
                <span class="rnumber">
                <i>总计收录：<?php echo $ranxml[$lnum]->incnum;?>曲</i>
                </span>
                <span class="rnumber">
                <i>收录更新时间：<?php echo $ranxml[$lnum]->inctime;?></i>
                </span>
              </div>
              <div class="clear"></div>
            </div>

          </div>
        </div>

      </div>

	    <?php
	    //输出注意信息
		if(!empty($ranxml[$lnum]->other)){
		?>
	<div class="rankoverall" style="margin-top:20px;">
		<div class="ranker" style="width:100%">
          <h4 style="background: #FFCF01;">需要注意信息</h4>
          <div class="feeds_list">
            <div class="feeds_main">
              <div class="other_text">
                <?php echo $ranxml[$lnum]->other;?>
				<p style="text-align: left;">*当此版块出现时说明本期数据进行过手工修正</p>
              </div>
              <div class="clear"></div>
            </div>

          </div>
        </div>
	 </div>
	 <?php
	 }
	 ?>
      <div class="rankoverall" style="margin-top:20px;">
        <div class="ranker" style="width:100%">
          <h4 style="background: #48CFAD;">往期排行视频</h4>
            <span id="OldView"></span>
            <div class="feeds_list" id="OverlayList">
			<?php //下方高能反应（自己都有点凌乱……）
				  for($i=1;$i<=5;$i++){
				    $nu=$num-$i;
					 if(!isset($ranxml[$ran_link[$nu]]->vcavid)){
					 //输出“没有更多”
					 ?>

		<div class="feeds_main">
                  <div class="feeds_text">
                    <span class="rnumber" ><i>(´・ω・｀)没有更多数据的说(〜￣△￣)〜</a></i></span>
                  </div>
                  <div class="clear"></div>
                </div>
			<?php	   break;//输出结束
					 }//输出榜单视频
					?>

		<div class="feeds_main">
                  <div class="feeds_text">
                    <span class="rnumber"><i><a target="_blank" href="http://www.bilibili.com/video/av<?php echo $ranxml[$ran_link[$nu]]->vcavid;?>/">周刊VOCALOID中文排行榜♪<?php echo $nu;?></a></i></span>
                  </div>
                  <div class="clear"></div>
                </div>
<?php	       //输出结束
				  }?>
			<div class="text_more"><a class="text_more" href="http://www.bilibili.com/sp/%E5%91%A8%E5%88%8AVOCALOID%E4%B8%AD%E6%96%87%E6%9B%B2%E6%8E%92%E8%A1%8C%E6%A6%9C" target="_blank">进入bilibili专题页</a></div>
		</div>
      </div>
	<div class="rankoverall" style="margin-top:20px;">
		<div class="ranker" style="width:100%">
          <h4 style="background: #66ccff;"><a href="list.php" style="color:#ffffff;">往期榜单入口</a></h4>
            <span id="OldView"></span>
            <div class="feeds_list" id="OverlayList">
                <?php //高能反应+1
				  for($i=1;$i<=5;$i++){
				    $nu=$num-$i;
					 if(!isset($ranxml[$ran_link[$nu]]->vcavid)){
					 //输出“没有更多”
					 ?>

		<div class="feeds_main">
                  <div class="feeds_text">
                    <span class="rnumber" ><i>(´・ω・｀)没有更多数据的说(〜￣△￣)〜</a></i></span>
                  </div>
                  <div class="clear"></div>
                </div>
			<?php	   break;//输出结束
					 }//输出往期榜单
					?>

		<div class="feeds_main">
                  <div class="feeds_text">
                    <span class="rnumber"><i><a href="index.php?n=<?php echo $nu;?>">周刊VOCALOID中文排行榜单♪<?php echo $nu;?></a></i></span>
                  </div>
                  <div class="clear"></div>
                </div>
<?php	       //输出结束
				  }?>
				  <div class="text_more"><a class="text_more" href="list.php">查看更多</a></div>
             </div>
        </div>
	</div>
        <div class="feeds_main">
          <div style="text-align: center">
            <a target="_blank" href="http://www.bilibili.com/"><img style="width:88px;height:31px" src="assets/mini-logo.gif" alt="Mini logo" /></a>
          </div>
          <div class="clear"></div>
        </div>

          </div>
        </div>
      </div>

      <div>
      </div>
    </div>
    <div style="clear:both"></div>
  </div>
</div>
<br/>

<div style="font-size:10px;color:#666;width:800px;text-align:center;margin:0 auto;padding:20px;"> &copy;2014. biliran.moe<p>本页面于<?php echo $ranxml[$lnum]->cachetime;?>缓存 仅供数据查询使用<p>非官方缓存 如有侵权请与我联系<p><a href="data/vcran.xml" class="footer_text">xml文件下载</a>  ·  <a href="<?php echo SITEDIS;?>" class="footer_text">站点说明</a>  ·  <a href="http://git.oschina.net/linzyjx/vcran/tree/master" class="footer_text">代码开源</a></div>
<script>
<?php echo $ranxml[$lnum]->incdata;?>
</script>
<script src="assets/index.js?body=1"></script>
</body>
</html>
<?php 
//do执行脚本
file_get_contents(URL_ROOT.'do.php');
?>